<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>ghToolkit: Fichero Fuente /home/david/programacion/ghToolkit/src/ghToolkit.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generado por Doxygen 1.6.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Buscar');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Página&nbsp;principal</span></a></li>
      <li><a href="annotated.html"><span>Estructuras&nbsp;de&nbsp;Datos</span></a></li>
      <li class="current"><a href="files.html"><span>Archivos</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Buscar" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>Lista&nbsp;de&nbsp;archivos</span></a></li>
      <li><a href="globals.html"><span>Globales</span></a></li>
    </ul>
  </div>
<h1>/home/david/programacion/ghToolkit/src/ghToolkit.h</h1><a href="gh_toolkit_8h.html">Ir a la documentación de este archivo.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;stdlib.h&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;time.h&gt;</span>
<a name="l00031"></a>00031 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
<a name="l00032"></a>00032 <span class="preprocessor">#include &lt;iostream&gt;</span>
<a name="l00033"></a>00033 <span class="preprocessor">#include &lt;fstream&gt;</span>
<a name="l00034"></a>00034 
<a name="l00035"></a>00035 <span class="preprocessor">#include &lt;SDL_opengl.h&gt;</span>
<a name="l00036"></a>00036 <span class="preprocessor">#include &lt;SDL.h&gt;</span>
<a name="l00037"></a>00037 <span class="preprocessor">#include &lt;SDL_image.h&gt;</span>
<a name="l00038"></a>00038 <span class="preprocessor">#include &lt;GL/gl.h&gt;</span>
<a name="l00039"></a>00039 <span class="preprocessor">#include &lt;GL/glu.h&gt;</span>
<a name="l00040"></a>00040 <span class="preprocessor">#include &lt;GL/glut.h&gt;</span>
<a name="l00041"></a>00041 
<a name="l00042"></a>00042 <span class="preprocessor">#include &quot;<a class="code" href="gh_def_8h.html">ghDef.h</a>&quot;</span>
<a name="l00043"></a>00043 <span class="preprocessor">#ifndef _ghToolkit_h_</span>
<a name="l00044"></a>00044 <span class="preprocessor"></span><span class="preprocessor">#define _ghToolkit_h_</span>
<a name="l00045"></a>00045 <span class="preprocessor"></span>
<a name="l00046"></a>00046 <span class="keyword">using namespace </span>std;
<a name="l00048"></a><a class="code" href="classgh_toolkit.html">00048</a> <span class="keyword">class </span><a class="code" href="classgh_toolkit.html" title="Capa principal de el toolkit.">ghToolkit</a> {
<a name="l00049"></a>00049     <span class="keyword">private</span>:
<a name="l00050"></a>00050     <span class="keyword">public</span>:
<a name="l00051"></a>00051 
<a name="l00053"></a><a class="code" href="classgh_toolkit_1_1system.html">00053</a>     <span class="keyword">class </span><a class="code" href="classgh_toolkit_1_1system.html" title="Capa que maneja lo mas elemental de el toolkit.">system</a> {
<a name="l00054"></a>00054         <span class="keyword">private</span>:
<a name="l00055"></a>00055         <span class="keyword">public</span>:
<a name="l00056"></a>00056         <span class="keywordtype">void</span> <a class="code" href="classgh_toolkit_1_1system.html#a77e19c9722b7b4cdc98948d3d29c085e" title="Inicia los servicios del toolkit.">init</a>   ( Uint32 ui32mode );
<a name="l00057"></a>00057         <span class="keywordtype">void</span> <a class="code" href="classgh_toolkit_1_1system.html#a26b08d095b41a682a70a127a330a1087" title="Metodo de creacion de una ventana nueva.">window</a> ( Uint16 ui16width, Uint16 ui16height, Uint16 ui16bpp, Uint32 ui32chtitle );
<a name="l00058"></a>00058         <span class="keywordtype">void</span> <a class="code" href="classgh_toolkit_1_1system.html#aefc4d79dc9d5622afd6580506fc65764" title="Rellena el fondo de pantalla.">fill</a>   ( Uint16 ui16R, Uint16 ui16G, Uint16 ui16B );
<a name="l00059"></a>00059         <span class="keywordtype">void</span> <a class="code" href="classgh_toolkit_1_1system.html#abf20f45d68bb9aaba0e76b1bbb411226" title="Limpia la pantalla.">clear</a>  ( <span class="keywordtype">void</span> );
<a name="l00060"></a>00060         <span class="keywordtype">void</span> <a class="code" href="classgh_toolkit_1_1system.html#aa994a5ed45434e09f43a044bffd13315" title="Intercambia los buffers de pantalla.">flip</a>   ( <span class="keywordtype">void</span> );
<a name="l00061"></a>00061         <span class="keywordtype">void</span> <a class="code" href="classgh_toolkit_1_1system.html#afd05753d89ac5ef746a174b6754c88eb" title="Crea un retraso.">delay</a>  ( Uint16 ui16seconds );
<a name="l00062"></a>00062         <span class="keywordtype">void</span> <a class="code" href="classgh_toolkit_1_1system.html#ad405ba6e63611d7a01c159937975e126" title="Establece el fps.">fps</a>    ( Uint16 ui16fps);
<a name="l00063"></a>00063     };
<a name="l00064"></a>00064 
<a name="l00066"></a><a class="code" href="classgh_toolkit_1_1io.html">00066</a>     <span class="keyword">class </span><a class="code" href="classgh_toolkit_1_1io.html" title="Capa que maneja los metodos de entrada de el toolkit.">io</a> {
<a name="l00067"></a>00067         <span class="keyword">private</span>:
<a name="l00068"></a>00068         <span class="keyword">public</span>:
<a name="l00069"></a><a class="code" href="classgh_toolkit_1_1io.html#a309c62019eb7bdedba84ebc037499b9b">00069</a>         Uint16 <a class="code" href="classgh_toolkit_1_1io.html#a309c62019eb7bdedba84ebc037499b9b">x</a>;
<a name="l00070"></a><a class="code" href="classgh_toolkit_1_1io.html#a1b78d84675674d128ffd314ed091ec06">00070</a>         Uint16 <a class="code" href="classgh_toolkit_1_1io.html#a1b78d84675674d128ffd314ed091ec06">y</a>;
<a name="l00071"></a>00071         <span class="keywordtype">void</span> <span class="keyword">set</span>        ( <span class="keywordtype">bool</span> bshow );
<a name="l00072"></a>00072         Uint16 <a class="code" href="classgh_toolkit_1_1io.html#ab32515162a7a84238ba23cb10da518cd" title="Devuelve el valor del boton del mouse pulsado.">click</a>    ( <span class="keywordtype">void</span> );
<a name="l00073"></a>00073         Uint16 <a class="code" href="classgh_toolkit_1_1io.html#aaa6b3d405922b2cb4a41944d99bbb811" title="Devuelve el valor de la tecla pulsada. Hay definidas las macros para la respuesta...">keypress</a> ( <span class="keywordtype">void</span> );
<a name="l00074"></a>00074 
<a name="l00076"></a><a class="code" href="classgh_toolkit_1_1io_1_1joypad.html">00076</a>         <span class="keyword">class </span><a class="code" href="classgh_toolkit_1_1io_1_1joypad.html" title="Capa que maneja los metodos de joypad de el toolkit.">joypad</a> {
<a name="l00077"></a>00077             <span class="keyword">private</span>:
<a name="l00078"></a>00078             <span class="keyword">public</span>:
<a name="l00079"></a>00079             Uint16 <a class="code" href="classgh_toolkit_1_1io_1_1joypad.html#a66892fa7cd573c8ad2b7b3bf5786d574" title="Devuelve el boton pulsado por el joypad.">gButton</a>      ( <span class="keywordtype">void</span> );
<a name="l00080"></a>00080             Uint16 <a class="code" href="classgh_toolkit_1_1io_1_1joypad.html#a811be9d05393ed524f9a346068269395" title="Devuelve la posicion del joypad.">gDirection</a>   ( <span class="keywordtype">void</span> );
<a name="l00081"></a>00081         };
<a name="l00082"></a>00082     };
<a name="l00083"></a>00083 
<a name="l00085"></a><a class="code" href="classgh_toolkit_1_1entity2_d.html">00085</a>     <span class="keyword">class </span><a class="code" href="classgh_toolkit_1_1entity2_d.html" title="Capa que maneja los metodos de las entidades.">entity2D</a> {
<a name="l00086"></a>00086         <span class="keyword">private</span>:
<a name="l00087"></a>00087         <span class="keyword">public</span>:
<a name="l00088"></a><a class="code" href="classgh_toolkit_1_1entity2_d.html#a7e1c99be341971c289addd83f7519dc9">00088</a>         Uint16 <a class="code" href="classgh_toolkit_1_1entity2_d.html#a7e1c99be341971c289addd83f7519dc9">x</a>;
<a name="l00089"></a><a class="code" href="classgh_toolkit_1_1entity2_d.html#af3607a86c120d1ee22829bfdf6c99599">00089</a>         Uint16 <a class="code" href="classgh_toolkit_1_1entity2_d.html#af3607a86c120d1ee22829bfdf6c99599">y</a>;
<a name="l00090"></a><a class="code" href="classgh_toolkit_1_1entity2_d.html#ae18c24a1e3392a54c17b6032889d8721">00090</a>         Uint16 <a class="code" href="classgh_toolkit_1_1entity2_d.html#ae18c24a1e3392a54c17b6032889d8721">w</a>;
<a name="l00091"></a><a class="code" href="classgh_toolkit_1_1entity2_d.html#a11eb9db3910763570645c8020762c662">00091</a>         Uint16 <a class="code" href="classgh_toolkit_1_1entity2_d.html#a11eb9db3910763570645c8020762c662">h</a>;
<a name="l00092"></a>00092 
<a name="l00093"></a>00093         <span class="keywordtype">void</span> <a class="code" href="classgh_toolkit_1_1entity2_d.html#ac128cad4cd0c3a93a3cc7db2c93bddd5" title="Devuelve la posicion del joypad.">load</a>   ( Uint32 ui32chimage );
<a name="l00094"></a>00094         <span class="keywordtype">void</span> <a class="code" href="classgh_toolkit_1_1entity2_d.html#a2a3e7ce8405718ab84f286cc05a5af26" title="Dibuja la entidad en la pantalla.">draw</a>   ( Uint16 ui16X, Uint16 ui16Y );
<a name="l00095"></a>00095         <span class="keywordtype">void</span> <a class="code" href="classgh_toolkit_1_1entity2_d.html#a4693351c26783aef2a0cc8d8a56b55ea" title="Define la escala de la entidad. Los valores son de 0 a 100.">scale</a>  ( Uint16 ui16scale );
<a name="l00096"></a>00096         <span class="keywordtype">void</span> <a class="code" href="classgh_toolkit_1_1entity2_d.html#ad26a1a904325489a8f2a53809276c1e1" title="Define el angulo de la entidad. Los valores son de 0 a 360.">angle</a>  ( Uint16 ui16angle );
<a name="l00097"></a>00097         <span class="keywordtype">void</span> <a class="code" href="classgh_toolkit_1_1entity2_d.html#ad19154c4c5c5b9083255b7aab45d7966" title="Define la opacidad de la entidad. Los valores son de 0 a 100.">alpha</a>  ( Uint16 ui16alpha );
<a name="l00098"></a>00098     };
<a name="l00099"></a>00099 
<a name="l00101"></a><a class="code" href="classgh_toolkit_1_1event.html">00101</a>     <span class="keyword">class </span><a class="code" href="classgh_toolkit_1_1event.html" title="Capa que maneja los eventos de el toolkit.">event</a> {
<a name="l00102"></a>00102         <span class="keyword">private</span>:
<a name="l00103"></a>00103         <span class="keyword">public</span>:
<a name="l00104"></a>00104         Uint16 <a class="code" href="classgh_toolkit_1_1event.html#a1fca250e657d820baee8b2b1d4715adf" title="Devuelve 1 si existe una colision entre las dos entidades 2D.">collision</a> ( <a class="code" href="classgh_toolkit_1_1entity2_d.html" title="Capa que maneja los metodos de las entidades.">ghToolkit::entity2D</a> ent_1,  <a class="code" href="classgh_toolkit_1_1entity2_d.html" title="Capa que maneja los metodos de las entidades.">ghToolkit::entity2D</a> ent_2 );
<a name="l00105"></a>00105         <span class="keywordtype">void</span> <a class="code" href="classgh_toolkit_1_1event.html#a1a56c4666a4d79d21d7eaa75e165a654" title="Registra los eventos.">motion</a>      ( <span class="keywordtype">void</span> );
<a name="l00106"></a>00106     };
<a name="l00107"></a>00107 
<a name="l00109"></a><a class="code" href="classgh_toolkit_1_1text.html">00109</a>     <span class="keyword">class </span><a class="code" href="classgh_toolkit_1_1text.html" title="Capa que maneja los metodos de texto de el toolkit.">text</a> {
<a name="l00110"></a>00110         <span class="keyword">private</span>:
<a name="l00111"></a>00111         <span class="keyword">public</span>:
<a name="l00112"></a>00112         <span class="keywordtype">void</span> <a class="code" href="classgh_toolkit_1_1text.html#a227d427cf3b30e9768049d3435d8c94f" title="Carga una fuente TTF.">load</a>   ( Uint32 ui32chfont );
<a name="l00113"></a>00113         <span class="keywordtype">void</span> <a class="code" href="classgh_toolkit_1_1text.html#a4670a90e615e33393691dfc15da43250" title="Define el color del texto.">color</a>  ( Uint16 ui16R, Uint16 ui16G, Uint16 ui16B );
<a name="l00114"></a>00114         <span class="keywordtype">void</span> <a class="code" href="classgh_toolkit_1_1text.html#a8a0349cb72bbda39765c091e3d5862f0" title="Define el tamaño del texto.">scale</a>  ( Uint16 ui16scale );
<a name="l00115"></a>00115         <span class="keywordtype">void</span> <a class="code" href="classgh_toolkit_1_1text.html#a68d366bffd3fc6c132fdc3a81fa55a18" title="Define el angulo del texto.">angle</a>  ( Uint16 ui16angle );
<a name="l00116"></a>00116         <span class="keywordtype">void</span> <a class="code" href="classgh_toolkit_1_1text.html#af62480c8ee785bdd97d21a9d50fe07bf" title="Define la opacidad del texto.">alpha</a>  ( Uint16 ui16alpha );
<a name="l00117"></a>00117         <span class="keywordtype">void</span> <a class="code" href="classgh_toolkit_1_1text.html#a1ff1fde40c347a913e45258e913a907d" title="Escribe una cadena de caracteres.">write</a>  ( Uint32 ui32text, Uint16 ui16X, Uint16 ui16Y );
<a name="l00118"></a>00118         <span class="keywordtype">void</span> <a class="code" href="classgh_toolkit_1_1text.html#a1ff1fde40c347a913e45258e913a907d" title="Escribe una cadena de caracteres.">write</a>  ( Uint16 ui16var , Uint16 ui16X, Uint16 ui16Y );
<a name="l00119"></a>00119     };
<a name="l00120"></a>00120 
<a name="l00122"></a><a class="code" href="classgh_toolkit_1_1sound.html">00122</a>     <span class="keyword">class </span><a class="code" href="classgh_toolkit_1_1sound.html" title="Capa que maneja los metodos de sonido de el toolkit.">sound</a> {
<a name="l00123"></a>00123         <span class="keyword">private</span>:
<a name="l00124"></a>00124         <span class="keyword">public</span>:
<a name="l00125"></a>00125         <span class="keywordtype">void</span> <a class="code" href="classgh_toolkit_1_1sound.html#a3800a297a830b90ae0dee03fd3e8eb2d" title="Carga un sonido en memoria.">load</a>   ( Uint32 ui32chsound );
<a name="l00126"></a>00126         <span class="keywordtype">void</span> <a class="code" href="classgh_toolkit_1_1sound.html#a97f553a0c2773397142776183140e00a" title="Reproduce el sonido.">play</a>   ( Uint16 ui16mode );
<a name="l00127"></a>00127         <span class="keywordtype">void</span> <a class="code" href="classgh_toolkit_1_1sound.html#afde0f7347ded9d448b8817c9badba2bd" title="Pausa un sonido.">pause</a>  ( <span class="keywordtype">void</span> );
<a name="l00128"></a>00128         <span class="keywordtype">void</span> <a class="code" href="classgh_toolkit_1_1sound.html#aa9a437801979d8615124fbe11455f550" title="Para un sonido.">stop</a>   ( <span class="keywordtype">void</span> );
<a name="l00129"></a>00129         <span class="keywordtype">void</span> <a class="code" href="classgh_toolkit_1_1sound.html#ae03a647df5ce63135bf81e3351e948dc" title="Establece el volumen.">volume</a> ( Uint16 ui16volume );
<a name="l00130"></a>00130     };
<a name="l00131"></a>00131 };
<a name="l00132"></a>00132 <span class="preprocessor">#endif</span>
</pre></div></div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>Todo</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Estructuras de Datos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Archivos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Funciones</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Definiciones</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address style="text-align: right;"><small>Generado el Sun Oct 31 18:35:28 2010 para ghToolkit por&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>
